# nginx.sh
#root@ubuntu:/home/wuchunlong# ./nginx_2.sh

# 2、选择其它版本安装
#首先查看有什么版本

# apt-get update
# apt-cache show nginx

# root@ubuntu:/home/wuchunlong# apt-cache show nginx
# Package: nginx
# Architecture: all
# Version: 1.18.0-0ubuntu1.4
# ...

# Package: nginx
# Architecture: all
# Version: 1.17.10-0ubuntu1
# ...

#root@ubuntu:/home/wuchunlong# apt-get install nginx=1.18.0-0ubuntu1.4

apt-get install nginx=1.18.0-0ubuntu1.4
nginx -v

# https://blog.csdn.net/u014225032/article/details/125283332